// modules/inform/pages/inform-detail/inform-detail.js
import {
  ifRead
} from "@/api/inform"
Page({

  /**
   * 页面的初始数据
   */
  data: {
    title: '我是标题',
    groupName: 'null',
    content: "暂无内容",
    time: 'null',
    id: ''
  },


  onLoad(options) {
    this.setData({
      title: options.title,
      content: options.content,
      id: options.id,
      time: options.publishTime,
      groupName: options.groupName
    })
    console.log(options.read)
    if (options.read === "false") {
      ifRead(this.data.id)
    }
  },


})